package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.Student2Mapper;
import com.ruoyi.system.domain.Student2;
import com.ruoyi.system.service.IStudent2Service;

/**
 * 学生表2Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-13
 */
@Service
public class Student2ServiceImpl implements IStudent2Service 
{
    @Autowired
    private Student2Mapper student2Mapper;

    /**
     * 查询学生表2
     * 
     * @param id 学生表2主键
     * @return 学生表2
     */
    @Override
    public Student2 selectStudent2ById(Long id)
    {
        return student2Mapper.selectStudent2ById(id);
    }

    /**
     * 查询学生表2列表
     * 
     * @param student2 学生表2
     * @return 学生表2
     */
    @Override
    public List<Student2> selectStudent2List(Student2 student2)
    {
        return student2Mapper.selectStudent2List(student2);
    }

    /**
     * 新增学生表2
     * 
     * @param student2 学生表2
     * @return 结果
     */
    @Override
    public int insertStudent2(Student2 student2)
    {
        return student2Mapper.insertStudent2(student2);
    }

    /**
     * 修改学生表2
     * 
     * @param student2 学生表2
     * @return 结果
     */
    @Override
    public int updateStudent2(Student2 student2)
    {
        return student2Mapper.updateStudent2(student2);
    }

    /**
     * 批量删除学生表2
     * 
     * @param ids 需要删除的学生表2主键
     * @return 结果
     */
    @Override
    public int deleteStudent2ByIds(Long[] ids)
    {
        return student2Mapper.deleteStudent2ByIds(ids);
    }

    /**
     * 删除学生表2信息
     * 
     * @param id 学生表2主键
     * @return 结果
     */
    @Override
    public int deleteStudent2ById(Long id)
    {
        return student2Mapper.deleteStudent2ById(id);
    }
}
